<?php
class AppMain
{
	public static function getDbDriver()
	{
		$db = new Flatfile();
		$db->datadir = 'data/';
		
		return $db;
	}
	public static function getCurrentTime($onlyDate = true)
	{
		if($onlyDate)
	{
		return date('Y-m-d',strtotime(sprintf("+%d hour",constant('TIME_ZONE_OFFSET'))));
	}else{
		return date('Y-m-d H:i:s',strtotime(sprintf("+%d hour",constant('TIME_ZONE_OFFSET'))));
	}
	}
}